package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TServiceMapper;
import com.ruoyi.system.domain.TService;
import com.ruoyi.system.service.ITServiceService;

/**
 * 宿舍报修Service业务层处理
 * 
 * @author cyh
 * @date 2024-05-09
 */
@Service
public class TServiceServiceImpl implements ITServiceService 
{
    @Autowired
    private TServiceMapper tServiceMapper;

    /**
     * 查询宿舍报修
     * 
     * @param serviceId 宿舍报修主键
     * @return 宿舍报修
     */
    @Override
    public TService selectTServiceByServiceId(Long serviceId)
    {
        return tServiceMapper.selectTServiceByServiceId(serviceId);
    }

    /**
     * 查询宿舍报修列表
     * 
     * @param tService 宿舍报修
     * @return 宿舍报修
     */
    @Override
    public List<TService> selectTServiceList(TService tService)
    {
        return tServiceMapper.selectTServiceList(tService);
    }

    /**
     * 新增宿舍报修
     * 
     * @param tService 宿舍报修
     * @return 结果
     */
    @Override
    public int insertTService(TService tService)
    {
        return tServiceMapper.insertTService(tService);
    }

    /**
     * 修改宿舍报修
     * 
     * @param tService 宿舍报修
     * @return 结果
     */
    @Override
    public int updateTService(TService tService)
    {
        return tServiceMapper.updateTService(tService);
    }

    /**
     * 批量删除宿舍报修
     * 
     * @param serviceIds 需要删除的宿舍报修主键
     * @return 结果
     */
    @Override
    public int deleteTServiceByServiceIds(Long[] serviceIds)
    {
        return tServiceMapper.deleteTServiceByServiceIds(serviceIds);
    }

    /**
     * 删除宿舍报修信息
     * 
     * @param serviceId 宿舍报修主键
     * @return 结果
     */
    @Override
    public int deleteTServiceByServiceId(Long serviceId)
    {
        return tServiceMapper.deleteTServiceByServiceId(serviceId);
    }
}
